#-*- coding: UTF-8 -*-
import re
import os



def cutW(path,project):
	return path[path.index(project):]

def ecdPath(path,project):
	patht = path[path.index(project):]
	pathtspl = patht.split('/')
	if len(pathtspl)<2:
		return patht+'/src'
	else:
		return pathtspl[0]+pathtspl[1]+'/src'
#查询list，索引key，索引value，目标key
def gets(list,itk,itv,itg):
	for ilist in list:
		if ilist[itk] == itv:
			return ilist[itg]